# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-funcy
_pkgname=${pkgname#python-}
pkgver=2.0
_commit=13fac0037c109a9e4649fc8ee343be17647f7407
pkgrel=6
pkgdesc='A fancy and practical functional tools.'
url='https://github.com/Suor/funcy'
arch=('any')
license=('BSD')
depends=('python')
makedepends=('git' 'python-build' 'python-pip')
source=("git+https://github.com/Suor/funcy.git#commit=$_commit")
sha512sums=('SKIP')

build() {
  cd $_pkgname

  python -m build --wheel --outdir="$startdir/dist"
}

package() {
  cd $_pkgname

  pip install \
    --verbose \
    --disable-pip-version-check \
    --no-warn-script-location \
    --ignore-installed \
    --no-compile \
    --no-deps \
    --root="$pkgdir" \
    --prefix=/usr \
    --no-index \
    --find-links="file://$startdir/dist" \
    $_pkgname
}

